package com.baichen.eventloop;

import java.util.concurrent.TimeUnit;

public interface EventLoopGroup {

    void execute(Runnable task);

    void schedule(Runnable task, long delay, TimeUnit unit);

    void scheduleAtFixedRate(Runnable task, long initialDelay, long period, TimeUnit unit);

    EventLoop next();
}
